package com.ym.medical.domain.param;

import com.ym.common.annotations.CustomConstraint;
import com.ym.medical.enums.CollectLableTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 收藏有问诊记录，药品，器械，文章对象 user_collection
 *
 * @author ym
 * @date 2020-09-04
 */
@ApiModel(value = "收藏有问诊记录，药品，器械，文章-查询")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class UserCollectionQueryParam {

    @ApiModelProperty("null")
    private Long userId;

    @ApiModelProperty("0 问诊，1 文章， 2 视频")
    @CustomConstraint(CollectLableTypeEnum.class)
    private String collectionType;

    @ApiModelProperty("关联内容(站内表)")
    private String relTable;

    @ApiModelProperty("关联内容标识(站内表)")
    private Long relId;

    @ApiModelProperty("主题图片")
    private String topicImgUrl;

    @ApiModelProperty("主题描述")
    private String topicDescription;

    @ApiModelProperty("内容地址,(站外地址)")
    private String contentUrl;

    @ApiModelProperty("收藏时间")
    private Date collectionTime;

    @ApiModelProperty("ids")
    private Long[] ids;
}
